﻿@model StartMVC.Models.OrderHeader

@{
    ViewBag.Title = "Complete";
}

<h2>结账</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>请输入递送信息与订单备注</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactName)
            @Html.ValidationMessageFor(model => model.ContactName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactPhoneNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactPhoneNo)
            @Html.ValidationMessageFor(model => model.ContactPhoneNo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactAddress)
            @Html.ValidationMessageFor(model => model.ContactAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TotalPrice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TotalPrice)
            @Html.ValidationMessageFor(model => model.TotalPrice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Memo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Memo)
            @Html.ValidationMessageFor(model => model.Memo)
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.BuyOn)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BuyOn)
            @Html.ValidationMessageFor(model => model.BuyOn)
        </div>*@

        <p>
            <input type="submit" value="完成订单" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("回首页", "Index","Home")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
